package com.gjs.common.pojo.dto.request;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class PageQuery {

    @ApiModelProperty("页码")
    public long page = 1L;

    @ApiModelProperty("每页条目数")
    public long size = 10L;

    public <T> Page<T> buildPage(){
        return Page.of(this.getPage(),this.getSize());
    }
}
